<template>

  <iframe :id='id' :src='this.url.redirectUrl' frameborder='0' width='100%' height='800px' scrolling='auto'></iframe>
</template>

<script>
import Vue from 'vue'
import { ACCESS_TOKEN, YEAR_SEMESTER } from '@/store/mutation-types'
export default {
  name: 'tabframe',
  data () {
    return {
      description: '学科网网校通页面',

      // url: '',
      id: '',
      url: {
        list: "/oauth/xkwoauth/xkwWxtController/tabframe",
        xkwlogin: "/oauth/xkwoauth/xkwLoginController/login",
        xkwauthentication: "/oauth/xkwoauth/oauthClientController/authentication",
        redirectUrl: ""
      },
      dictOptions:{},
      superFieldList:[],
    }
  },
  created() {
    this.goxkwWxtUrl();
  },
  methods: {
    goxkwWxtUrl(){
      let wxtpath = this.$route.query.wxtpath;//获得参数wxtpath
      let xkwwxtUrl = 'https://inwxt.zxxk.com'+wxtpath;
      this.url.redirectUrl = xkwwxtUrl;
      // console.log('------wxtpath------' + wxtpath)
      // console.log('------xkwwxtUrl------' + xkwwxtUrl)
      // console.log('------this.url.redirectUrl------' + this.url.redirectUrl)
      // return xkwwxtUrl;
    },
  }
}
</script>

<style scoped>

</style>